<div class="app-index-banner swiper-container">
        <div class="swiper-wrapper">
            <?php
                /** @var \common\models\Flash[] $list */
                $list = \common\models\Flash::getList();
                foreach($list as $k=>$item){
                    echo '<div class="swiper-slide app-banner-item">';
                    echo '<img src="'. $item->file->file_path .'"  alt="">';
                    echo '</div>';
                }
            ?>
        </div>

        <div class="swiper-pagination"></div>
</div>
<script src="/js/hotcss.js"></script>
<script src="/js/fastclick.js"></script>
<script src="/js/swiper.min.js"></script>
<script>
    // factclick
    FastClick.attach(document.body);
    
    var banner = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true ,
        loop: true ,
        centeredSlides: true
    });

</script>